﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp11
{
    class Class1
    {
        //编号
        public int Id { get; set; }
        //名称
        public string Name { get; set; }
        //价格
        public double  Price { get; set; }
        public void SetClass1(int id ,string name,double price)
        {
            Id = id;
            Name = name;
            Price = price;
        }
        public void PrintMsg()
        {
            Console.WriteLine("书本编号：" + Id);
            Console.WriteLine("书本名称：" + Name);
            Console.WriteLine("书本价格：" + Price);
        }
    }
}
